package org.project.hint_game;

import java.util.ArrayList;

public class Player{
	private String userName_;
	private int userColor_;
	private ArrayList<Integer> cardList_;
	
	/** Numbers
	1: Green (Fairy)
	2: White (Ghost)
	3: Red (Gnome)
	4: Yellow (Magician)
	5: Blue (Sailor)
	6: Purple (Witch)	 
	**/
	
	// Constructors
	public Player(String userName){
		userName_ = userName;
		cardList_ = new ArrayList<Integer>();
	}
	public Player(String userName, int color){
		userName_ = userName;
		userColor_ = color;
		cardList_ = new ArrayList<Integer>();
	}
	
	// Setter Methods
	public void setName(String userName){
		userName_ = userName;
	}
	public void assignCard(int cardNum){
		cardList_.add(cardNum);
	}
	public void assignCardList(ArrayList<Integer> cardList){
		cardList_.addAll(cardList);
	}
	public void setColor(int color){
		userColor_ = color;
	}
	
	// Getter Methods
	public int getColor(){
		return userColor_;
	}
	public String getName(){
		return userName_;
	}
	public ArrayList<Integer> getCardList(){
		return cardList_;
	}
}